package com.yuer.rpc.thread;


/**
 * 继承Thread类
 * 类 Thread的类头为：public class Thread implement runnable
 * 继承Thread类，并重写Thread中的run方法
 * 创建多线程:方法一
 */
public class MyThread extends Thread{
    @Override
    public void run(){
        System.out.println("创建多线程:方法一");
    }
    public static void main(String[] args) {
        MyThread thread=new MyThread();
        thread.start();
        System.out.println("运行结束");
    }
}